file='answer_user.py'
with open(file,'w') as file_object:
    while True:
        message=input('请输入你喜欢python的原因')
        if message == 'quit':
            break
        else:
            file_object.write('The reason is '+message+'\n')